home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / effects / dimmer2effect.win / effectdefinitions.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.1 KB  |  53 lines

  1. /*
  2.     File:    EffectDefinitions.h
  3.     
  4.     Author:    Dan Crow
  5.     
  6.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  7.  
  8.     Useful definitions for the sample effect that are used by both the
  9.     effect source code and its resource file, to ensure that these remain
  10.     in sync
  11.  
  12. */
  13.  
  14. /*
  15.  
  16. // for what machine are we building this codec
  17. #define TARGET_OS_MAC            1
  18. #define TARGET_REZ_MAC_PPC        1
  19. #define TARGET_REZ_MAC_68K        0
  20. #define TARGET_MAC_PPC            1
  21. #define TARGET_MAC_68K            0
  22. #define TARGET_OS_WIN32            0
  23. */
  24.  
  25. // resource id numbers for this codec
  26. #define kEffectcdciRes            130
  27. #define kEffectthngRes            130
  28. #define kEffectatmsRes            130
  29. #define kEffectICONRes            130
  30. #define kEffectNameRes            129
  31. #define kEffectDescriptionRes    130
  32. #define kEffectCodeRes            130
  33.  
  34. // PPC versions are + 1
  35. #if REZ
  36.     #if TARGET_OS_MAC && TARGET_REZ_MAC_PPC
  37.         #define    VERSIONDELTA            1
  38.     #else
  39.         #define    VERSIONDELTA            0
  40.     #endif
  41. #else
  42.     #if TARGET_OS_MAC && TARGET_CPU_PPC
  43.         #define    VERSIONDELTA            1
  44.     #else
  45.         #define    VERSIONDELTA            0
  46.     #endif
  47. #endif
  48.  
  49. // version number of our effect
  50. #define kDimmerEffectVersion        (0x00010000 + VERSIONDELTA)
  51.  
  52.  
  53.